# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-egghatch
_pkgname=egghatch
pkgver=0.2.3
pkgrel=1
pkgdesc='Cuckoo Sandbox Shellcode Identification & Formatting.'
url='https://pypi.org/project/egghatch/#files'
arch=('any')
license=('GPL3')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('cb667d27215f2467dc4ea88da09cab81341adcc8146d884dca28355562ae15055b0ebd73297a9a3f9d7d8db439275195a10bda73b2a922075c82bc5581b8fa94')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

